import axios from 'axios'

const { VITE_AXIOS_BASE_URL, VITE_AXIOS_TIME_OUT } = import.meta.env

const request = (config) => {
  const instance = axios.create({
    baseURL: VITE_AXIOS_BASE_URL,
    timeout: VITE_AXIOS_TIME_OUT
  })

  return instance(config)
}

export default request
